import React, { Component } from 'react';
import { BrowserRouter as Router} from "react-router-dom";
import Footer from './Footer';
import '../style/App.less';
import RouteWithSubRoutes from '@/util/render';
import routes from '@/routes';


class App extends Component {
  render() {
    return (
      <Router>
        <div className="App">
          {routes.map((route, i) => <RouteWithSubRoutes key={i} {...route} />)}
          <Footer />
        </div>
      </Router>
    );
  }
}

export default App;
